package com.cjx.auth.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 *@author cjunxian
 *@date 2020/10/20  10:44:42
 *@doc Oauth2获取Token返回信息封装
 *@version 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Oauth2TokenDto implements Serializable {

    /**
     * 序列化版本 UID.
     */
    private static final long serialVersionUID=1L;

    @ApiModelProperty("访问令牌")
    private String token;

    @ApiModelProperty("刷新令牌")
    private String refreshToken;

    @ApiModelProperty("访问令牌头前缀")
    private String tokenHead;

    @ApiModelProperty("有效时间（秒）")
    private int expiresIn;
}
